import { createApp } from "vue";
import "./assets/styles/index.scss";
import App from "./App.vue";
import ElementPlus from "element-plus";
import * as ElementPlusIconsVue from "@element-plus/icons-vue";

import "element-plus/dist/index.css";
import "virtual:svg-icons-register";
import "./assets/styles/element-variarbles.scss";
// echarts
// import * as echarts from "echarts/core";
// import { CanvasRenderer } from "echarts/renderers";
// import { LabelLayout, UniversalTransition } from "echarts/features";
// import { TitleComponent, TooltipComponent, GridComponent, DatasetComponent, TransformComponent } from "echarts/components";
// import { BarChart } from "echarts/charts";

// echarts.use([TitleComponent, TooltipComponent, GridComponent, DatasetComponent, TransformComponent, BarChart, LabelLayout, UniversalTransition, CanvasRenderer]);

import router from "./router";
import SvgIcon from "./components/svg-icon/index.vue";

const app = createApp(App);

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}

app.component("SvgIcon", SvgIcon);
app.use(ElementPlus);
app.use(router);
app.mount("#app");
